import Mock, { mock } from "mockjs";
import sj from "./data.json";

// 通过Mock.mock去模拟接口

// 利用Mock模块，生了一个mock数据，其地址是mock/SJ，返回的数据是{code:200,data:SJ的对象}
Mock.mock("/mock/goods", { code: 200, data: sj.goods});
Mock.mock("/mock/seller", { code: 200, data: sj.seller})
Mock.mock("/mock/ratings", { code: 200, data: sj.ratings})

